
####animationscript function main#####
# data/chars/leo/leo2/leo2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==37)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/mikey/mikey2/mikey2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==121)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/don/don2/don2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==206)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/raph/raph2/raph2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==290)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/rash/rash2/rash2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==373)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/pimple/pimple2/pimple2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==454)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/chars/zitz/zitz2/zitz2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==534)
    {


  if(frame==1){

    void self = getlocalvar("self");

    float x = getentityproperty(self, "x");

    float Tx = openborvariant("xpos") + openborvariant("hResolution")/2;

    float Vx;



    Vx = (Tx-x)/100;



    changeentityproperty(self, "velocity", Vx);

  } else if(frame==2){

    void self = getlocalvar("self");

    changeentityproperty(self, "velocity", 0);

  }

	        return;
    }

}

####animationscript function main#####
# data/inicio/fase15/fase15ok.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==589)
    {


    if(frame==1){ // first frame

      playmusic("data/music/empty.bor",1);

    }

    if(frame==2){ // last frame before text disappears

      playmusic("data/music/fimfase.bor",1);

    }

	        return;
    }

}
